package com.sanpu.kxe.business.login.contract;

import com.sanpu.kxe.base.IBasePresenter;
import com.sanpu.kxe.base.IBaseView;

/**
 * Description：注册contract
 * Created by 薛勇军 on 2018/6/22.
 */

public interface RegisterContract {

    interface View extends IBaseView<Presenter> {

        /**
         * 检查控件值不为空
         * @param checkCode 验证码发送
         */
        boolean checkParameter(boolean checkCode);

        /**
         * 根据状态改变验证码验证的显示状态
         * @param status
         */
        void changeByStatus(boolean status);

        /**
         * 读秒
         */
        void byoyomi(Long aLong);

        /**
         * 显示加载数据进度条
         */
        void showLoadingDialog(boolean cancelable, String content);

        /**
         * 取消正在显示的dialog
         */
        void dismissLoadingDialog();
    }

    interface Presenter extends IBasePresenter {

        /**
         * 发送验证码
         */
        void sendCode(String accountName);

        /**
         * 注册
         */
        void register(String accountName, String password, String referrerPhone, String smsCode);
    }
}
